<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>指尖上行</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/css.css">
<link rel="stylesheet" href="../../css/AccountUser.css">
<link rel="stylesheet" href="../../../bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="../../../bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../../../bower_components/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../../../bower_components/Ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="../../../dist/css/AdminLTE.min.css">
<link rel="stylesheet" href="../../../dist/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="../../../bower_components/jvectormap/jquery-jvectormap.css">
<link rel="stylesheet" href="../../../bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
<link rel="stylesheet" href="../../../bower_components/bootstrap-daterangepicker/daterangepicker.css">
<link rel="stylesheet" href="../../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition skin-blue sidebar-mini"  data-treeview="0" data-treeview-menu="0">
<div class="wrapper">
  <header class="main-header"> <a class="logo"> <span class="logo-mini"><b>指</b></span> <span class="logo-lg"><img src="../../img/logo.png"/></span></a>
    <nav class="navbar navbar-static-top"><a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button"></a></nav>
  </header>
  <aside class="main-sidebar">
    <section class="sidebar">
      <ul class="sidebar-menu" data-widget="tree">
      </ul>
    </section>
  </aside>
  <div class="content-wrapper">
    <section class="content-search">
      <div class="form-group">
        <label>手机号</label>
        <input type="text" class="form-control w140" placeholder="手机号" id="mobile">
      </div>
      <div class="form-group">
        <label>昵称</label>
        <input type="text" class="form-control w140" placeholder="昵称" id="userName">
      </div>
      <div class="form-group">
        <label>绑定游戏ID</label>
        <input type="text" class="form-control w140" placeholder="绑定游戏ID" id="gameRole">
      </div>
      <div class="form-group">
        <label>用户状态</label>
        <select class="form-control w140" id="userStatus">
        </select>
      </div>
      <div class="form-group">
        <label>注册时间</label>
        <div class="input-group date w140 fl">
          <div class="input-group-addon"> <i class="fa fa-calendar"></i> </div>
          <input type="text" class="form-control pull-right" id="datepicker">
        </div>
        <span>到</span>
        <div class="input-group date w140 fl">
          <div class="input-group-addon"> <i class="fa fa-calendar"></i> </div>
          <input type="text" class="form-control pull-right" id="datepicker2">
        </div>
      </div>
      <div class="form-group">
        <label>注册绑定</label>
        <select class="form-control w140" id="registerType">
        </select>
      </div>
      <div class="form-group">
        <button type="button" class="btn btn-primary searchbtn">搜索</button>
      </div>
    </section>
    <section class="content-header">
      <button type="button" class="btn btn-primary status" data-toggle="modal" data-target="#modal-status" data-status="2">禁止用户登录</button>
      <button type="button" class="btn btn-primary status" data-toggle="modal" data-target="#modal-status" data-status="1">解禁用户登录</button>
      <button type="button" class="btn btn-primary status" data-toggle="modal" data-target="#modal-status" data-status="3">禁止用户聊天</button>
      <button type="button" class="btn btn-primary status" data-toggle="modal" data-target="#modal-status" data-status="1">解禁用户聊天</button>
      <button type="button" class="btn btn-primary status" data-toggle="modal" data-target="#modal-status" data-status="4">禁止IP登录</button>
      <button type="button" class="btn btn-primary status" data-toggle="modal" data-target="#modal-status" data-status="1">解禁IP登录</button>
      <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-game">解绑用户游戏ID</button>
      <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-email">解绑用户邮箱</button>
      <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-kefu">设置为客服</button>
    </section>
    <!-- 修改状态 -->
    <div class="modal fade" id="modal-status" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">确认</h4>
          </div>
          <div class="modal-body"></div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btnstatus">确认</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 解绑用户游戏ID -->
    <div class="modal fade" id="modal-game" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">确认</h4>
          </div>
          <div class="modal-body">确认解绑用户游戏ID</div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btngame">确认</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 解绑用户邮箱 -->
    <div class="modal fade" id="modal-email" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">确认</h4>
          </div>
          <div class="modal-body">确认解绑用户邮箱</div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btnemail">确认</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 设置客服 -->
    <div class="modal fade" id="modal-kefu" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">确认</h4>
          </div>
          <div class="modal-body">确认设置为客服</div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btnkefu">确认</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 更换手机 -->
    <div class="modal fade" id="modal-cphone" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">更换绑定手机号</h4>
          </div>
          <div class="modal-body">
            <h4></h4>
            <div class="form-group">
                  <label>新手机号</label>
                  <input type="text" class="form-control w250" placeholder="新手机号" id="newmobile">
            </div>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btncphone">确认</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 升级为代练 -->
    <div class="modal fade" id="modal-power" style="display: none;">
      <div class="modal-dialog w400">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">升级为代练</h4>
          </div>
          <div class="modal-body">
            <div class="box box-primary">
              <div class="box-body">
                <div class="form-group">
                  <label>代练类型</label>
                  <select class="form-control w140" id="levelingType">
                    <option value="1">个人</option>
                    <option value="2">工作室</option>
                  </select>
                </div>
                <div class="form-group">
                  <label>游戏类型</label>
                  <input type="checkbox" value="1" name="gameType">王者荣耀
                  <input type="checkbox" value="2" name="gameType">绝地求生
                </div>
              </div>
            </div>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btnpower">提交</button>
          </div>
        </div>
      </div>
    </div>
    <section class="content">
      <div class="box">
        <div class="box-header">
          <h3 class="box-title">用户账号列表</h3>
        </div>
        <div class="box-body">
          <table id="example1" class="table table-bordered table-striped">
            
          </table>
          <div class="paginationDiv">
            <ul class="pagination">
              <li class="prev"><a>上一页</a></li>
              <li class="next"><a>下一页</a></li>
            </ul>
            <input type="text" value="1" class="form-control curpage"/>
            <button type="button" class="btn btn-default gopage">跳转</button>
            <span class="pageinfo"></span> </div>
        </div>
      </div>
    </section>
  </div>
</div>
<script type="text/html" id="datalist">
	<thead>
	  <tr role="row">
		<th><input type="checkbox" class="allcheck"></th>
		<th>ID</th>
		<th>昵称</th>
		<th>手机号</th>
		<th>注册绑定</th>
		<th>邮箱</th>
		<th>注册时间</th>
		<th>游戏ID</th>
		<th>所属战队</th>
		<th>虚拟货币</th>
		<th>最后登录IP</th>
		<th>用户状态</th>
		<th>操作</th>
	  </tr>
    </thead>
	<tbody>
	<%for(var i = 0,len= dataset.length;i < len;i++){%>
	  <tr role="row">
		<td><input type="checkbox" name="items" value="<%= dataset[i].id%>"></td>
		<td><%= dataset[i].id%></td>
		<td><%= dataset[i].userName%></td>
		<td><%= dataset[i].mobile%></td>
		<td><%= dataset[i].registerType==null?"-":dataset[i].registerType%></td>
		<td><%= dataset[i].email==null?"-":dataset[i].email%></td>
		<td><%= dataset[i].registerTime%></td>
		<td>
		<%if(dataset[i].gameAccountInfos.length>0){%>
		  <%for(var j=0;j<dataset[i].gameAccountInfos.length;j++){%>
			(<%=dataset[i].gameAccountInfos[j].gameName%>-
			<%=dataset[i].gameAccountInfos[j].areaName%>-
			<%=dataset[i].gameAccountInfos[j].role%>)<br/>
	    <%}%>
	    <%}else{%>
		    -
	    <%}%>
		</td>
		<td><%= dataset[i].troops[0]==null?"-":dataset[i].troops[0]%></td>
		<td>金币:<%= dataset[i].gold%><br/>钻石:<%= dataset[i].diamond%></td>
		<td><%= dataset[i].loginIp==null?"-":dataset[i].loginIp%></td>
		<td><%= dataset[i].status%></td>
		<td><button type="button" class="btn btn-info btn-xs cphone" data-toggle="modal" data-target="#modal-cphone" data-id="<%= dataset[i].id%>" data-userName="<%= dataset[i].userName%>">更换绑定手机</button>
      <button type="button" class="btn btn-info btn-xs power" data-toggle="modal" data-target="#modal-power"  data-id="<%= dataset[i].id%>">升级为代练</button></td>
      </tr>
	<%}%>
    </tbody>
</script> 
<script type="text/html" id="selectlist">
    <option value="0">全部</option>
	<%for(var i = 0,len= dataset.length;i < len;i++){%>
	   <option value="<%= dataset[i].type%>"><%= dataset[i].desc%></option>
	<%}%>
</script> 
<script type="text/html" id="selectlist2">
    <option value="0">全部</option>
	<%for(var i = 0,len= dataset.length;i < len;i++){%>
	   <option value="<%= dataset[i].status%>"><%= dataset[i].desc%></option>
	<%}%>
</script> 
<script src="../../../bower_components/jquery/dist/jquery.min.js"></script> 
<script src="../../../bower_components/jquery-ui/jquery-ui.min.js"></script> 
<script src="../../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script> 
<script src="../../../bower_components/raphael/raphael.min.js"></script> 
<script src="../../../bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script> 
<script src="../../../plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script> 
<script src="../../../plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script> 
<script src="../../../bower_components/jquery-knob/dist/jquery.knob.min.js"></script> 
<script src="../../../bower_components/moment/min/moment.min.js"></script> 
<script src="../../../bower_components/bootstrap-daterangepicker/daterangepicker.js"></script> 
<script src="../../../bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script> 
<script src="../../../bower_components/bootstrap-datepicker/dist/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script src="../../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script> 
<script src="../../../bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script> 
<script src="../../../bower_components/fastclick/lib/fastclick.js"></script> 
<script src="../../../dist/js/adminlte.min.js"></script>   
<script src="../../js/template-web.js"></script> 
<script src="../../js/js.js"></script> 
<script src="../../js/AccountUser.js"></script> 
<script>
  $(function () {
	$('#datepicker').datepicker({format:"yyyy-mm-dd",language:"zh-CN",autoclose: true,todayHighlight:true});
	$('#datepicker2').datepicker({format:"yyyy-mm-dd",language:"zh-CN",autoclose: true,todayHighlight:true});
  })
</script>
</body>
</html>
